package com.machuxin.course.patterns.decorator;

/**
 * 抽象装饰器
 */
public abstract class PancakeDecorator extends Pancake{

    /**
     * 静态委派
     */
    private Pancake pancake;

    public PancakeDecorator(Pancake pancake) {
        this.pancake = pancake;
    }

    @Override
    public String getMsg() {
        return this.pancake.getMsg();
    }

    @Override
    public Integer getPrice() {
        return this.pancake.getPrice();
    }
}
